#room for imports
import connectivity.server

class client:
    __doc__=""" 
Skeleton class for client connectivity component. This will be developed
Desired methods:

connect() - connects to the server using some elements from the interface, others built-in
get_presentation() - gets the XML from the server and writes it on local storage
get_image() - downloads (probably using wget) an image from an outside filehosting server (probably using apache)

When the client component is awaken from the server with a new slide number, it shall cal upon a method from the interface, such as setSlide(number) 
"""

    def __init__(self):
        #TODO
        return
    
    def connect(self, disp, server, name, password):
    	# 	disp - pointer to display
    	#	server - server's address
    	#	name - student name, should match one in the list of students available on server
    	#	password - should match the password assigned by the teacher for current presentation
        port=connectivity.server.server.PORT
        #TODO
        return
    
    def get_presentation(self,filename='presentation.xml'):
        # filename - where to store the image
        
        return
    
    def get_image(self,filename,url):
    	# filename - where to store the image
    	# url - where to get the image from
        #TODO
        return


#	 should erase downloaded data anf / or files created during the presentation